<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_campphoto.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/Mall_campphoto.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '营中照片',
        name: 'Mall_campphoto',
        url: '/Mall_campphoto/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {
        campsiteId: '',
        campsitePhaseId: '',
        campgroupings: '',
        isvisibility: '',
        photo: [],
        uploadclarity: '',
        modifier: '',
        modifyDate: '',
        modifyID: '',
        createDate: '',
        createID: '',
        campgrouping: '',
        creator: '',
        camppeople: '',
      },
      editFormOptions: [
        [
          { dataKey: 'campsite', data: [], title: '营地名称', field: 'campsiteId', type: 'select', required: true },
          { dataKey: 'campsitePhaseId', data: [], title: '营期名称', field: 'campsitePhaseId', type: 'select', required: true },
        ],
        [{ dataKey: 'isvisibility', data: [], title: '用户查看权限', field: 'isvisibility', type: 'radio' }],
        //    {"title":"照片地址","field":"photo","type":"img","multiple":true,"maxFile":5}],
        [{ title: '照片', field: 'photo', type: 'img', maxFile: 100, multiple: true, colSize: 12 }],
        [{ dataKey: 'campgroupings', data: [], title: '选择团队', field: 'campgroupings', type: 'checkbox', hidden: 'true' }],
        [{ dataKey: 'campgrouping', data: [], title: '选择组', field: 'campgrouping', type: 'checkbox', hidden: 'true' }],
        [{ dataKey: 'uploadclarity', data: [], title: '上传清晰度', field: 'uploadclarity', type: 'select' }],
        [{ dataKey: 'camppeople', data: [], title: '营员列表', field: 'camppeople', type: 'selectList' }],
      ],

      searchFormFields: { campsiteId: '', campsitePhaseId: '' },
      searchFormOptions: [[{ dataKey: 'campsite', data: [], title: '营地名称', field: 'campsiteId', type: 'select' }]],
      columns: [
        { field: 'campsiteId', title: '营地名称', type: 'int', bind: { key: 'campsite', data: [] }, width: 90, align: 'left' },
        { field: 'campsitePhaseId', title: '营期名称', type: 'int', bind: { key: 'enable', data: [] }, width: 90, align: 'left' },
        { field: 'photo', title: '照片地址', type: 'img', width: 120, align: 'left' },
        { field: 'uploadclarity', title: '上传清晰度', type: 'int', bind: { key: 'uploadclarity', data: [] }, width: 90, align: 'left' },
        //     {field:'campgrouping',title:'选择团队和组',type:'string',width:90,align:'left',sortable:true},
        //    {field:'camppeople',title:'营员多个，逗号分隔',type:'string',width:220,align:'left'},
        //    {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
        { field: 'identified', title: '已识别数量', type: 'int', width: 90, align: 'left' },
        { field: 'isvisibility', title: '用户查看权限', type: 'int', bind: { key: 'isvisibility', data: [] }, width: 120, align: 'left' },
        //    {field:'create_id',title:'create_id',type:'string',width:90,align:'left'},
        { field: 'creator', title: '创建人', type: 'string', width: 90, align: 'left' },
        { field: 'createDate', title: '创建时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        { field: 'modifier', title: '修改人', type: 'string', width: 90, align: 'left' },
        { field: 'modifyDate', title: '修改时间', type: 'datetime', width: 90, align: 'left', sortable: true },
        //    {field:'modify_id',title:'modify_id',type:'string',width:90,align:'left'},
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
